home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
FARMALOC.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
278 b
|
13 lines
/* farmalloc.c --- p. 133 */
# include <stdio.h>
# include <alloc.h>
main()
{
int far *bigblock;
if(( bigblock = farmalloc(80000L)) == NULL)
{
printf("Memory allocation failed!\n");
exit(1);
}
printf("Block of 80,000 bytes allocated at %Fp\n", bigblock);
}